import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [

    //登录
    {
      path: '/',
      name: 'Login',
      component: resolve => require(['@/components/Login'], resolve)
    },
    //首页
    {
      path: '/HomePage',
      name: 'HomePage',
      component: resolve => require(['@/common/Home'], resolve),
      children: [
        {
          path: '/HomePage',
          name: 'HomePage',
          component: resolve => require(['@/page/homepage/HomePage'], resolve),
        },
        {
          path: '/homepage/dome',
          name: 'dome',
          component: resolve => require(['@/page/homepage/dome'], resolve),
        },
        {
          path: '/homepage/carousel',
          name: 'carousel',
          component: resolve => require(['@/page/homepage/carousel'], resolve),
        },
      ]
    },

  ]
})
